package com.yang.helloworld;

public class HelloWorld {
    private String name;

    public HelloWorld() {
        System.out.println("构造函数");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        System.out.println("name的构造方法");
        this.name = name;
    }
    public void hello(){
        System.out.println("Hello  " + name);
    }
}
